package com.tianqu.tms.core.mail;

import java.io.Serializable;
import java.io.IOException;
import java.io.ObjectInputStream;

/**
 * <p>附件是Text类型的数据类</p><br />
 * <br />
 * 
 * @author liugang
 *
 */
public class AttachmentTextBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	//附件名称
	private String fileName = null;
	//附件内容
	private String text = null;
	//附件编码
	private String encoding = null;

	/**
	 * AttachmentTextBean的初始化
	 * @param fileName
	 * @param text
	 * @param encoding
	 */
	public AttachmentTextBean(String fileName, String text, String encoding) {
		this.fileName = fileName;
		this.text = text;;
		this.encoding = encoding;
	}

	public String getEncoding() {
		return encoding;
	}

	public String getFileName() {
		return fileName;
	}

	public String getText() {
		return text;
	}

	/**
	 * <p>对象的读取</p><br />
	 * @param input
	 * @throws IOException
	 * @throws ClassNotFoundException
	 */
	private void readObject(ObjectInputStream input )throws IOException,ClassNotFoundException {
		input.defaultReadObject();
	}
}
